package com.wang.dao;

import org.apache.ibatis.annotations.Param;
import com.wang.pojo.Teacher;

public interface TeacherMapper {
    //方式一：按结果嵌套查询
    Teacher getTeacher(@Param("tid") int id);
    //方式二
    Teacher getTeacher2(@Param("tid")int id);
}
